home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-06-30 | 1.4 KB | 65 lines |
- SOURCES = mined1.c minedaux.c mined2.c minedio.c minedmp.c
- OBJ = mined1.o minedaux.o mined2.o minedio.o minedmp.o
- #I = /usr/include # dependencies of this might also be used
-
- # Choose one of the following:
- #
- #SCREEN = -DTERMIO
- #SLIB = -ltermcap
- #
- SCREEN = -DSGTTY
- SLIB = -ltermcap
- #
- # Choose curses only in case of emergency, else better leave it.
- # The VMS version uses curses but doesn't use this makefile anyway.
- #SCREEN = -DCURSES
- #SLIB = -lcurses -ltermcap
-
- # Define sysV if on System V flavour
- #SYSTEM = -Dunix -DsysV
- SYSTEM = -Dunix
-
- # Define if optimization wanted:
- #OPT = -O
-
- # Define if pedantic analysis wanted:
- GFLAGS = -Dunix -ansi -pedantic -Wall -Wtraditional -Wpointer-arith -Wconversion -Waggregate-return -Winline
-
- # Collection of compilation parameters:
- CFLAGS = $(OPT) $(SCREEN) $(SYSTEM)
-
- # Optionally choose a C compiler:
- #CC = gcc $(GFLAGS)
- CC = cc
-
-
- # Default make action:
- all: mined
-
- # Mined generation:
- mined: $(OBJ)
- $(CC) $(OBJ) $(SLIB) -o mined
- strip mined
-
- # Source compilation:
- mined1.o: mined1.c mined.h
- $(CC) $(CFLAGS) -c mined1.c
- minedaux.o: minedaux.c mined.h
- $(CC) $(CFLAGS) -c minedaux.c
- mined2.o: mined2.c mined.h
- $(CC) $(CFLAGS) -c mined2.c
- minedio.o: minedio.c mined.h
- $(CC) $(CFLAGS) -c minedio.c
- minedmp.o: minedmp.c mined.h
- $(CC) $(CFLAGS) -c minedmp.c
-
-
- # Cleanup after compilation:
- clean:
- rm -f $(OBJ) core
-
- # Restore state before compilation:
- clobber: clean
- rm -f mined
-
-